﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AnimatorNS;

namespace LittleLove.Base
{
    public class AnimatorBase
    {
        private static Random rnd = new Random();
        public enum AnimationType : int
        {
            Rotate = 0,
            HorizSlide = 1,
            VertSlide = 2,
            Scale = 3,
            ScaleAndRotate = 4,
            HorizSlideAndRotate = 5,
            ScaleAndHorizSlide = 6,
            Transparent = 7,
            Leaf = 8,
            Mosaic = 9,
            Particles = 10,
            VertBlind = 11,
            HorizBlind = 12
        };

        public static Animation[]
            m_listAnimation = { Animation.Rotate, Animation.HorizSlide, Animation.VertSlide,
                              Animation.Scale, Animation.ScaleAndRotate, Animation.HorizSlideAndRotate,
                              Animation.ScaleAndHorizSlide, Animation.Transparent, Animation.Leaf,
                              Animation.Mosaic, Animation.Particles, Animation.VertBlind,
                              Animation.HorizBlind};

        /// <summary>
        /// Get randomly an animator
        /// </summary>
        /// <returns></returns>
        public static Animation getRandomAnimation()
        {
            int index = rnd.Next(m_listAnimation.Length);
            return m_listAnimation[index];
        }
    }
}
